package com.itheima.test01;

public class StandardPd {
    public static void main(String[] args) {


        //利用 无参构造器 创建学生对象
        Student s1 = new Student();
        s1.setName("张三");
        s1.setAge(23);
        System.out.println(s1.getName() + "..." + s1.getAge());
        System.out.println("------------");
        s1.show();

        //利用 有参构造器 创建学生对象
        Student s2 = new Student("李四",26);
        System.out.println(s2.getName() + "..." + s2.getAge());
        System.out.println("*******************");
        s2.show();


        //四种 创建string对象的方法

        String s7 = new String();
        System.out.println(s7);

        char[] chs = {'a','b','c'};
        String s8 = new String(chs);
        System.out.println(s8);

        String s6 = new String("123");
        System.out.println(s6);

        String s14 = "888";
        System.out.println(s14);
    }
}
